<template>
    <!-- <NuxtLayout name="default"> -->
    <div class="page">
        <div class="container">
            <div class="name">
                <div class="nameText">你的智能人工助手</div>
            </div>
            <div class="title">欢迎来到猫头鹰AI</div>
            <div class="intro">AI对话、写作、绘画、图片处理</div>
            <div class="sorts">
                <div class="sort leftSort">
                    <div class="sortName"><span class="ai">Ai</span> <span class="nameText">艺术家</span></div>
                    <div class="sortTip">无需魔法点开即用</div>
                    <div class="sortAct">
                        <img class="w-[24px] h-[24px] ml-[16px] cursor-pointer" :src="IconDraw" />
                        <div>画一画</div>
                    </div>
                </div>
                <div class="sort rightSort">
                    <div class="sortName"><span class="ai">Ai</span> <span class="nameText">对话大师</span></div>
                    <div class="sortTip">先进模型，智能体验</div>
                    <div class="sortAct">
                        <img class="w-[24px] h-[24px] ml-[16px] cursor-pointer" :src="IconChat" />
                        <div>聊一聊</div>
                    </div>
                </div>
            </div>
            <div class="feature">
                <div class="featureTitle">使用猫头鹰AI,<span>你可以...</span></div>
                <div class="featureContent">
                    <div class="dialogueName">
                        <div class="featureCategory">
                            <div class="commonFeature selected"><img class="w-[24px] h-[24px] cursor-pointer"
                                    :src="IconCreate" />
                                <div class="commonText">创作</div>
                            </div>
                            <div class="commonFeature">
                                <div class="commonText">MJ</div>
                            </div>
                            <div class="commonFeature">
                                <div class="commonText">SD</div>
                            </div>
                        </div>
                        <div class="fixSuffix">对话</div>
                    </div>
                    <div class="featurePic">
                        <div class="picIntro">实现画家梦，创作属于你的作品</div>
                        <div class="picContent"></div>
                        <div class="picFooter">
                            <div class="picFooterText">马上创作</div>
                            <ElIcon :size="24">
                                <Right style="margin-left: 3px;color:#fff;" />
                            </ElIcon>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <!-- </NuxtLayout> -->
</template>

<script setup lang="ts">
import IconDraw from 'assets/images/drawing/icon_draw.png'
import IconChat from 'assets/images/drawing/icon_chat.png'
import IconCreate from 'assets/images/drawing/icon_create.png'
import { Right } from '@element-plus/icons-vue'
import { ElIcon } from 'element-plus'
</script>

<style lang="scss" scoped>
.page {
    width: 100%;
    // min-width: 1920px;
    height: 1228px;
    background: #121318;
    border-radius: 0px 0px 0px 0px;
}

.container {
    margin: auto;
    width: 969px;
    height: 398px;
    border-radius: 0px 0px 0px 0px;
    background-image: url('~/assets/images/indexBackground.png');
    display: flex;
    flex-direction: column;
    align-items: center;

    .name {
        margin-top: 15px;
        padding: 4px 0;
        width: 112px;
        height: 26px;
        background: linear-gradient(94deg, #FF4343 0%, #F8EA9B 24%, #6FF0BA 53%, #667DF6 88%, #E269DD 100%);
        border-radius: 100px 100px 100px 100px;
        display: flex;
        justify-content: center;

        .nameText {
            width: 80px;
            height: 14px;
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 10px;
            color: #FFFFFF;
            line-height: 12px;
            text-align: left;
            font-style: normal;
            text-transform: none;
        }
    }

    .title {
        margin-top: 15px;
        width: 292px;
        height: 50px;
        font-family: PingFang SC, PingFang SC;
        font-weight: bold;
        font-size: 36px;
        color: #FFFFFF;
        line-height: 42px;
        text-align: center;
        font-style: normal;
        text-transform: none;
    }

    .intro {
        margin-top: 20px;
        width: 205px;
        height: 20px;
        font-family: PingFang SC, PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #FFFFFF;
        line-height: 16px;
        text-align: left;
        font-style: normal;
        text-transform: none;
    }

    .sorts {
        margin-top: 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;

        .rightSort {
            width: 398px;
            height: 210px;
            background: linear-gradient(167deg, #FFBC3A 2%, rgba(255, 247, 58, 0) 28%), linear-gradient(189deg, #FF3A3A 2%, rgba(255, 188, 58, 0) 34%), rgba(38, 41, 50, 0.9);
            border-radius: 8px 8px 8px 8px;
        }

        .leftSort {
            width: 398px;
            height: 210px;
            background: linear-gradient(167deg, #9D3AFF 2%, rgba(157, 58, 255, 0) 28%), linear-gradient(189deg, #3AFFAC 2%, rgba(58, 125, 255, 0) 34%), rgba(38, 41, 50, 0.9);
            border-radius: 8px 8px 8px 8px;
        }

        .sort {
            display: flex;
            flex-direction: column;
            align-items: center;

            .sortName {
                margin-top: 25px;
                width: 128px;
                height: 34px;
                border-radius: 0px 0px 0px 0px;

                .ai {
                    width: 20px;
                    // height: 21px;
                    // width: 72px;
                    height: 34px;
                    font-family: PingFang SC, PingFang SC;
                    font-weight: bold;
                    font-size: 24px;
                    color: #FFFFFF;
                    line-height: 28px;
                    text-align: left;
                    font-style: normal;
                    text-transform: none;
                }

                .nameText {

                    height: 34px;
                    font-family: PingFang SC, PingFang SC;
                    font-weight: bold;
                    font-size: 24px;
                    color: #FFFFFF;
                    line-height: 28px;
                    text-align: left;
                    font-style: normal;
                    text-transform: none;
                }
            }

            .sortTip {
                margin-top: 25px;
                width: 126px;
                height: 20px;
                font-family: PingFang SC, PingFang SC;
                font-weight: 400;
                font-size: 14px;
                color: #8B8E92;
                line-height: 16px;
                text-align: left;
                font-style: normal;
                text-transform: none;
            }

            .sortAct {
                width: 186px;
                height: 34px;
                background: #262932;
                border-radius: 6px 6px 6px 6px;
                margin-top: 10px;
                border-radius: 4px;
                font-size: 11px;
                text-align: center;
                display: flex;
                flex-direction: row;
                align-items: center;

                img {
                    margin-left: 58px;
                }

                div {
                    margin-left: 5px;
                    width: 42px;
                    height: 20px;
                    font-family: PingFang SC, PingFang SC;
                    font-weight: 500;
                    font-size: 14px;
                    color: #F86E07;
                    line-height: 16px;
                    text-align: left;
                    font-style: normal;
                    text-transform: none;
                }

            }
        }
    }

    .feature {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;

        .featureTitle {
            margin-bottom: 10px;
            width: 258px;
            height: 34px;
            font-family: PingFang SC, PingFang SC;
            font-weight: 500;
            font-size: 24px;
            color: #F86E07;
            line-height: 28px;
            text-align: center;
            font-style: normal;
            text-transform: none;

            span {
                color: #fff;
            }
        }

        .featureContent {
            display: flex;
            flex-direction: column;
            align-items: center;


            .dialogueName {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 320px;
                height: 54px;
                background: #262932;
                border-radius: 100px 100px 100px 100px;

                .featureCategory {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    width: 226px;
                    height: 44px;
                    background: #121318;
                    border-radius: 100px 100px 100px 100px;

                    .commonFeature {
                        padding: 2px 10px;
                        height: 44px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        border-radius: 100px 100px 100px 100px;

                        .commonText {
                            width: 32px;
                            height: 22px;
                            font-family: PingFang SC, PingFang SC;
                            font-weight: 400;
                            font-size: 16px;
                            color: #FFFFFF;
                            line-height: 19px;
                            text-align: left;
                            font-style: normal;
                            text-transform: none;
                        }
                    }

                    .selected {
                        border: 1px solid #F86E07;
                    }
                }

                .fixSuffix {
                    margin-right: 30px;
                    width: 32px;
                    height: 22px;
                    font-family: PingFang SC, PingFang SC;
                    font-weight: 400;
                    font-size: 16px;
                    color: #8B8E92;
                    line-height: 19px;
                    text-align: left;
                    font-style: normal;
                    text-transform: none;
                }
            }

            .featurePic {
                margin-top: 20px;
                width: 919px;
                height: 551px;
                background: #262932;
                border-radius: 8px 8px 8px 8px;
                display: flex;
                flex-direction: column;
                align-items: center;

                .picIntro {
                    margin: 23px 0;
                    width: 270px;
                    height: 25px;
                    font-family: PingFang SC, PingFang SC;
                    font-weight: 500;
                    font-size: 18px;
                    color: #8B8E92;
                    line-height: 21px;
                    text-align: left;
                    font-style: normal;
                    text-transform: none;
                }

                .picContent {
                    width: 789px;
                    height: 408px;
                    background: #121318;
                    border-radius: 14px 14px 14px 14px;
                    background-image: url('~/assets/images/featureIntro.png');
                    ;
                }

                .picFooter {
                    margin-top: 20px;
                    width: 167px;
                    height: 41px;
                    background: #F86E07;
                    border-radius: 8px 8px 8px 8px;
                    display: flex;
                    justify-content: center;
                    align-items: center;

                    .picFooterText {
                        width: 64px;
                        height: 22px;
                        font-family: PingFang SC, PingFang SC;
                        font-weight: 500;
                        font-size: 16px;
                        color: #FFFFFF;
                        line-height: 19px;
                        text-align: left;
                        font-style: normal;
                        text-transform: none;
                    }
                }
            }
        }

    }

}
</style>
